using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class patient_satisfaction_answer_sheetMap : EntityTypeConfiguration<patient_satisfaction_answer_sheet>
    {
        public patient_satisfaction_answer_sheetMap()
        {
            // Primary Key
            this.HasKey(t => t.patient_satisfaction_answer_sheet_id);

            // Properties
            this.Property(t => t.newid)
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("patient_satisfaction_answer_sheet");
            this.Property(t => t.patient_satisfaction_answer_sheet_id).HasColumnName("patient_satisfaction_answer_sheet_id");
            this.Property(t => t.visit_date).HasColumnName("visit_date");
            this.Property(t => t.follow_up_id).HasColumnName("follow_up_id");
            this.Property(t => t.newid).HasColumnName("newid");
            this.Property(t => t.visittype).HasColumnName("visittype");
            this.Property(t => t.patienttype).HasColumnName("patienttype");
        }
    }
}
